package com.lyr.thread4;

public class MyThread1 implements Runnable {

    @Override
    public void run() {
        for (int i=1;i<11;i++){
            System.out.println(i+": MyThread1");

            try {
                // 线程休眠时间
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

    }
}
